/* 悬浮按钮容器 */
.commentButtonContainer {
  position: fixed;
  right: 2em;
  top: calc(50% + 5em);
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 100;
  cursor: pointer;
}

/* 主按钮样式 */
.commentButton {
  width: 3.5em;
  height: 3.5em;
  border-radius: 50%;
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
  border: 1px solid #f0f0f0;
}

.commentButton:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 已评论状态 */
.commentButton.commented {
  background-color: #f0f5ff;
  border-color: #d6e4ff;
}

/* 图标样式 */
.commentIcon {
  font-size: 1.5em;
  color: #666;
}

.commentButton.commented .commentIcon {
  color: #1677ff;
}

/* 评论数量显示 */
.commentCount {
  margin-top: 0.5em;
  font-size: 0.9em;
  color: #666;
  background-color: #fff;
  padding: 0.2em 0.6em;
  border-radius: 1em;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

/* 当前用户信息 */
.currentUser {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.userAvatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  margin-right: 8px;
  background-color: rgba(0, 0, 0, 0.6);
}

.username {
  font-weight: 500;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .commentButtonContainer {
    right: 1em;
    top: calc(50% + 4.5em);
  }

  .commentButton {
    width: 3em;
    height: 3em;
  }

  .commentIcon {
    font-size: 1.2em;
  }
}
